#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
#include<string.h>
int A(char s[], int len)
{
	for (int i = 0;i < len;i++)
	{
		if (s[i] != s[len - i - 1])
			return 0;
	}
	return 1;
}

int B(char s[], int len)
{
	for (int i = 0;i < len;i++)
	{
		if (s[i] == s[len - i - 1])
			return 0;
	}
	return 1;
}

int main()
{
	int n;
	scanf("%d", &n);
	for (int i = 0;i < n;i++)
	{
		char s[100001];
		scanf("%s", s);
		int len = strlen(s);
		if (len % 2 == 1)
		{
			if (A(s, len) == 1)
				printf("Wingardium Leviosa\n");
			else
				printf("The spell fails\n");
		}
		else
		{
			if (B(s, len) == 1)
				printf("Wingardium Leviosa\n");
			else
				printf("The spell fails\n");
		}
	}
	return 0;
}